#ifndef POLLTHREAD_H
#define POLLTHREAD_H

#include <QThread>
#include <vector>
#include <QMutex>

using namespace std;

class PollThread : public QThread
{
public:
    PollThread();
    vector<double> getTemperature();
    vector<int> getLight();

private:
    virtual void run();//任务处理线程
    vector<double> temperature;
    QMutex tempMutex;

    vector<int> light;
    QMutex lightMutex;
};

#endif // POLLTHREAD_H
